package com.explam.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2024-04-17
 */
@Getter
@Setter
@TableName("sys_petals")
@ApiModel(value = "Petals对象", description = "")
public class Petals implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户名称")
    private String nickName;

    @ApiModelProperty("零花钱")
    private Float pocketMoney;

    @ApiModelProperty("管理员id")
    private Integer adminId;

    @ApiModelProperty("管理员昵称")
    private String adminNickname;

    @ApiModelProperty("资产名称")
    private String notes;

    @ApiModelProperty("是否删除 0-否 1-是")
    private Integer isDel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;


}
